package ooad.factory;

public class CarFactory {
	
	public static Car createCar(int type){
		switch(type){
		case 0:return new Benz("S600");
		case 1: return new BMW();
		}
		return null;
	}

}
